<?php

class m121123_122145_create_file extends EDbMigration {

	private $_table = 'files';
	
	public function safeUp() {
		$columns = array(
			'id'=>'pk',
			'name'=>'string not null',
			'size'=>'integer not null',
			'type'=>'string not null',
			'extension'=>'string',
			'note'=>'text',
			'createdAt'=>'datetime',
			'updatedAt'=>'datetime',
		);
		$this->createTable($this->_table, $columns);
		
	}

	public function safeDown() {
		$this->dropTable($this->_table);
	}

}